<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%-- 
<s:property value="#session['sideMenu']"/>
<s:property value="#session['topMenuId']"/>
--%>

<!-- 左侧菜单 -->
<s:div id="side-menu">
	<s:if test="#session['sideMenu'] != null">
		
		<s:tree theme="ajax" 
			rootNode="#session['sideMenu']" 
			nodeTitleProperty="name" 
			nodeIdProperty="code" 
			childCollectionProperty="children">
		</s:tree>
		
		 <%--
		<s:if test="#session['topMenuId']=='sys-mng'">
			<ul>
				<li>
					<h2>系统管理 </h2>
					<ul>
						<li><a href="#">人员管理</a></li>
						<li><a href="#">工作组管理</a></li>
						<li><a href="#">权限管理</a></li>
						<li><a href="#">系统日志管理</a></li>
					</ul>
				</li>
				<li>
					<h2>Aliquam tempus</h2>
					<p>Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper urna. Pellentesque ornare, orci in consectetuer hendrerit, volutpat.</p>
				</li>
			</ul>
		</s:if>--%>
	</s:if>
	<s:else>
		<ul>
			<li>
				<h2>系统主页 </h2>
				<ul>
					<li><a id="products-introduct" href="#">产品介绍</a></li>
					<li><a id ="company-culture" href="#">企业文化</a></li>
					<li><a id="custom-remark" href="#">客户留言</a></li>
					<li><a id="join-us" href="#">招贤纳士</a></li>
					<li><a id="contact-us" href="#">联系我们</a></li>
				</ul>
			</li>
			<li>
				<h2>Aliquam tempus</h2>
				<p>Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper urna. Pellentesque ornare, orci in consectetuer hendrerit, volutpat.</p>
			</li>
		</ul>
	</s:else>
</s:div>	

<script type="text/javascript">
	$(document).ready(function(){
		$("#products-introduct").click(function(){
			$(this).attr("targets", "content").attr("href", "/snail/home/products_introduction.jsp");
		});
		$("#company-culture").click(function(){
			$(this).attr("targets", "content").attr("href", "/snail/home/company_culture.jsp");
		});
	});
</script>



